<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<link  rel="stylesheet" th:href="@{/static/css/index.css}">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>你好世界 Hello Wrold</h1>
<h1 th:text="${name}">你好世界 Hello Wrold</h1>
<br/>
<div th:object="${student}">
    用户姓名：<input th:id="*{name}" th:name="*{name}" th:value="*{name}" >
    <br/>
    用户年龄：<input th:value="*{age}">
    <br/>
    用户生日：<input th:value="*{#dates.format(sr,'yyyy-MM-dd hh:mm:ss')}">
    <br/>
</div>
<form th:action="@{/index/login}" th:object="${student}" method="post" th:method="post">
    <input type="text" th:field="*{name}"/>
    <input type="text" th:field="*{age}"/>
    <input type="submit"/>
</form>
<br/>
<select>
    <option>选择框</option>
    <option th:selected="${student.name eq 'zhangsan'}">用户</option>
    <option th:selected="${student.name eq 'lisi'}">用户</option>
    <option th:selected="${student.name eq '小杰伦'}">管理员</option>
</select>
<teble>
    <tr>
        <th>Id</th>
        <th>name</th>
    </tr>
    <tr th:each="${uList}">
        <th>${u.id}</th>
        <th>${u.name}</th>
    </tr>

</teble>


</body>
</html>